﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="WebSys.UI.SysManage.LoggerList" %>

<%@ Register Assembly="Antu.WebControls" Namespace="Antu.WebControls" TagPrefix="CBW" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>日志服务</title>
</head>
<body>
    <form id="form1" runat="server">
        <table cellpadding="0" cellspacing="0" width="100%" align="center" style="border: 2px solid #ccc; margin-top: 50px">
            <tr bgcolor="#BAC9B5">
                <td height="40px" style="width: 50%">
                    <span style="font-size: 16px; font-weight: bold; float: left">&nbsp;日志列表</span></td>
                <td height="40px" style="width: 50%;" align="right">
                    <asp:DropDownList ID="loggertype" runat="server">
                        <asp:ListItem Text="异常日志"></asp:ListItem>
                        <asp:ListItem Text="信息日志"></asp:ListItem>
                         <asp:ListItem Text="SQL操作日志"></asp:ListItem>
                    </asp:DropDownList>
                    <CBW:MPCalendar ID="loggerdate" runat="server" />
                    <asp:Button ID="viewbtn" runat="server" Text="查看" />
                </td>
            </tr>
            <tr>
                <td valign="top" align="center" colspan="2">
                    <table style="width: 100%; border: 1px solid #ccc;" cellpadding="0" cellspacing="0">
                        <tr>
                            <td width="100px" height="25px" style="border: 1px solid #ccc;">时间</td>
                            <td style="border: 1px solid #ccc;">方法</td>
                            <td style="border: 1px solid #ccc;">参数</td>
                            <td style="border: 1px solid #ccc;">信息</td>
                            <td style="border: 1px solid #ccc;">Trace</td>
                        </tr>
                        <CBW:MPRepeater ID="LoggerMPRepeater" runat="server">
                            <EmptyDataTemplate>
                                <tr>
                                    <td height="25px" style="border: 1px solid #ccc;" colspan="5">该日期未记录日志！</td>
                                </tr>
                            </EmptyDataTemplate>
                            <ItemTemplate>
                                <tr>
                                    <td width="100px" height="25px" style="border: 1px solid #ccc;"><%#Eval("Value") %></td>
                                    <td style="border: 1px solid #ccc;" valign="top"><%#Eval("Method") %></td>
                                    <td style="border: 1px solid #ccc;" valign="top"><%#Eval("Parames") %></td>
                                    <td style="border: 1px solid #ccc;" valign="top"><%#Eval("ErrorMsg") %></td>
                                    <td style="border: 1px solid #ccc;" valign="top"><span style="cursor: pointer" tag="<%#Eval("Trace").ToString().Trim() %>" onclick='if(this.innerHTML=="查看"){this.innerHTML=this.tag}else{this.innerHTML="查看"}'>查看</span></td>
                                </tr>
                            </ItemTemplate>
                        </CBW:MPRepeater>
                        <CBW:MPRepeater ID="LoggerInfoMPRepeater" runat="server" Visible="false">
                            <EmptyDataTemplate>
                                <tr>
                                    <td  height="25px" style="border: 1px solid #ccc;" colspan="5">该日期未记录日志！</td>
                                </tr>
                            </EmptyDataTemplate>
                            <ItemTemplate>
                                <tr>
                                    <td width="100px" height="25px" style="border: 1px solid #ccc;"><%#Eval("Value") %></td>
                                    <td style="border: 1px solid #ccc;" valign="top"><%#Eval("Method") %></td>
                                    <td style="border: 1px solid #ccc;" valign="top"><%#Eval("Parames") %></td>
                                    <td style="border: 1px solid #ccc;" valign="top"><%#Eval("InfoMsg") %></td>
                                    <td style="border: 1px solid #ccc;" valign="top">&nbsp;</td>
                                </tr>
                            </ItemTemplate>
                        </CBW:MPRepeater>
                    </table>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
